<?php

class Users extends CI_Model {
	
	function Users() {
		parent::__construct();
		$this->load->database();
		
	}
	
	function getAllUsers() {
		$query->$this->db->get('users');
		if ($query->num_rows()>0) {
			return $query->result_array();
		}
	}
	
}

?>